<?php
/**
 * Modèle d'une route
 * @author François Guégnaud
 *
 */
class HackInPain_Model_Route extends HackInPain_Model_Abstract {
	protected $_controller;
	
	protected $_action;
	
	// short name of controller. ex: Application_Menu_Controller => 'menu'
	protected $_short_controller;
	
	/**
	 * Set controller.
	 * @param string $controller
	 */
	public function setController($controller) {
		$this->_short_controller = $controller;
		$this->_controller = 'Application_'.ucfirst($controller).'_Controller';
	}
	
	/**
	 * Set action
	 * @param string $action
	 */
	public function setAction($action) {
		$this->_action = $action.'Action';
	}
	
	/**
	 * Get controller
	 * @return $_controller
	 */
	public function getController() {
		return $this->_controller;
	}
	
	/**
	 * Get action
	 * @return $_action
	 */
	public function getAction() {
		return $this->_action;
	}
	
	/**
	 * Get controller's short name
	 * @return $_short_controller
	 */
	public function getShortController() {
		return $this->_short_controller;
	}
}